package com.tamecode.repository;

import com.tamecode.entity.Person;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


/**
 * persion 持久化
 */
@Repository
public interface PersonRepository extends JpaRepository<Person, Long> {

    /**
     * 根据用户名查找 Person
     *
     * @param username
     * @return
     */
    Person findByUsername(String username);
}